//
//  UWeChat.h
//  UPaySDK
//
//  Created by xu yao on 2021/3/4.
//

#import <Foundation/Foundation.h>
#import "USDKTypeDefine.h"
NS_ASSUME_NONNULL_BEGIN
@class UPayReq;
@interface UWeChat : NSObject

/**
 *  单例
 */
+ (instancetype)currentHelper;

/**
 *  注册SDK
 * @param appid 微信开发者ID
 * @param universalLink 微信开发者Universal Link
 */
+ (void)registerWeChat:(NSString *)appid universalLink:(NSString *)universalLink;

/**
 *  支付 调起微信客户端
 *  @param
 */
+ (void)weChatPayWithPayReq:(UPayReq *)payReq;

/**
 * 设置代理回调
 */
+ (void)handleOpenURL:(NSURL *)url onPayResult:(USDKPayResultHandler)payResultHandle;
/**
 *  WXApi的class
 */
@property (nonatomic, strong) Class wxApiClass;
@property (nonatomic, assign) id delegate;

@end

NS_ASSUME_NONNULL_END
